package com.extend_;

public class Student {
    public String  name ;
    public int age ;
    private  double score;
    //public void testing();
    public double setScore(int score){
        this.score = score;
        return  this.score;
    }
    public void showInfo(){
        System.out.println("学生名 "+name+" 年龄"+age+" 成绩"+score);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
